package com.orafl.use.comorafluse.applicationListenerEventDemo;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

@Component
public class OraflApplicationListener implements ApplicationListener<OraflApplicationEvent> {
    @Override
    public void onApplicationEvent(OraflApplicationEvent oraflApplicationEvent) {
        String str = oraflApplicationEvent.event1(oraflApplicationEvent.getSource().toString());

        System.out.println(str);
    }
}
